public class MethodDemo06 {
    static int k = 10;// 成员变量/全局变量

    public static void main(String[] args) {
        int j = 1;
        test();
        test1();

    }

    public static void test() {
        int i = 0;// 局部变量
        System.out.println(k);

    }

    public static void test1() {
        System.out.println(k);

    }

}
